import { Service, Inject } from 'typedi';
import { res } from '@/utils/jsonResult';
import { MenuService } from '../MenuService';
import { Menu } from '@/entity/Menu';
import { MenuDao } from '@/dao/MenuDao';
import { CommentParams, form, formlist} from '@/model/request/Comment';



@Service()
export class MenuServiceImpl implements MenuService {
    [x: string]: any;

    @Inject()
    menuDao!: MenuDao

    async GetAllMenu(): Promise<res<Menu[]>> {
        return this.menuDao.GetAllMenuDao();
    }

    async GetForm(params:formlist): Promise<res<null>>{
        return this.menuDao.Push(params)
    }
   

   

}